package com.itfly.entity;

import java.io.Serializable;
import java.util.List;

import lombok.Data;

/**
 * 
 * @TableName users
 */
@Data
public class Users {
    /**
     * 
     */
    private Integer id;

    /**
     * 
     */
    private String username;

    /**
     * 
     */
    private String name;

    /**
     * 
     */
    private String password;

    /**
     * 
     */
    private Integer age;

    /**
     * 
     */
    private String phone;

    /**
     * 
     */
    private String email;
    //一个用户多个事件
    private List<EventManagement> eventManagement;
    //多个分类
    private List<EventCategories> eventCategories;

    @Override
    public String toString() {
        return "Users{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", age=" + age +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", eventManagement=" + eventManagement +
                ", eventCategories=" + eventCategories +
                '}';
    }
}